.box {
    width: 100px;
    height: 100px;
    background-color: red;
    transition: all 1s ease-in-out;
}

.box:hover {
    width: 300px;
    background-color: rgb(0, 255, 255);
}

/* 鼠标移开变回原来的大小 */